package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 经营品类
    */
@ApiModel(value="com-lanchetech-entity-Catalog")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Catalog implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private Long id;

    /**
    * 根类目id
    */
    @ApiModelProperty(value="根类目id")
    private Long rid;

    /**
    * 父类目id
    */
    @ApiModelProperty(value="父类目id")
    private Long pid;

    /**
    * 品类名字
    */
    @ApiModelProperty(value="品类名字")
    private String name;

    /**
    * 排序降序
    */
    @ApiModelProperty(value="排序降序")
    private Integer sorts;

    private List<Catalog> catalogs;

    private static final long serialVersionUID = 1L;

    public void setCatalogs(final List<Catalog> catalogs) {
        this.catalogs = catalogs;
    }
}